#include "actions.h"
#include <QApplication>

QAction * Actions::m_mediaPage = 0;
QAction * Actions::m_searchPage = 0;
QAction * Actions::m_uploadPage = 0;
QAction * Actions::m_chatPage = 0;
QAction * Actions::m_hubsPage = 0;
QAction * Actions::m_about_programm = 0;
QAction * Actions::m_help = 0;
QAction * Actions::m_settings = 0;
QAction * Actions::m_search = 0;
QAction * Actions::m_verifyNick = 0;
QAction * Actions::m_registration = 0;
QAction * Actions::m_exit = 0;
QAction * Actions::m_minimize = 0;
QAction * Actions::m_connectToAllHubs = 0;

QAction *Actions::mediaPage() noexcept{
    if(m_mediaPage == 0){
        m_mediaPage = new QAction(qApp);
        m_mediaPage->setIconText(QObject::trUtf8("media"));
    }
    return m_mediaPage;
}

QAction *Actions::searchPage() noexcept{
    if(m_searchPage == 0){
        m_searchPage = new QAction(qApp);
        m_searchPage->setIconText(QObject::trUtf8("search"));
    }
    return m_searchPage;
}

QAction *Actions::uploadsPage() noexcept{
    if(m_uploadPage == 0){
        m_uploadPage = new QAction(qApp);
        m_uploadPage->setIconText(QObject::trUtf8("uploads"));
    }
    return m_uploadPage;
}

QAction *Actions::chatPage() noexcept{
    if(m_chatPage == 0){
        m_chatPage = new QAction(qApp);
        m_chatPage->setIconText(QObject::trUtf8("chat"));
    }
    return m_chatPage;
}

QAction *Actions::hubsPage() noexcept{
    if(m_hubsPage == 0){
        m_hubsPage = new QAction(qApp);
        m_hubsPage->setIconText(QObject::trUtf8("hubs"));
    }
    return m_hubsPage;
}

QAction *Actions::about_programm() noexcept{
    if(m_about_programm == 0)
        m_about_programm = new QAction(QObject::trUtf8("о программе"), qApp);
    return m_about_programm;
}

QAction *Actions::help() noexcept{
    if(m_help == 0)
        m_help = new QAction(QObject::trUtf8("помощь"), qApp);
    return m_help;
}

QAction *Actions::settings() noexcept{
    if(m_settings == 0)
        m_settings = new QAction(QObject::trUtf8("настройки"), qApp);
    return m_settings;
}

QAction *Actions::search() noexcept{
    if(m_search == 0)
        m_search = new QAction(QObject::trUtf8("Искать"), qApp);
    return m_search;
}

QAction *Actions::verifyNick() noexcept{
    if(m_verifyNick == 0)
        m_verifyNick = new QAction(QObject::trUtf8("Проверить ник"), qApp);
    return m_verifyNick;
}

QAction *Actions::registration() noexcept{
    if(m_registration == 0)
        m_registration = new QAction(QObject::trUtf8("Регистрация"), qApp);
    return m_registration;
}

QAction *Actions::exit() noexcept{
    if(m_exit == 0){
        m_exit = new QAction(qApp);
        m_exit->setIconText(QObject::trUtf8("exit"));
    }
    return m_exit;
}

QAction *Actions::minimize() noexcept{
    if(m_minimize == 0){
        m_minimize = new QAction(qApp);
        m_minimize->setIconText(QObject::trUtf8("minimaze_box"));
    }
    return m_minimize;
}

QAction *Actions::connectToAllHubs() noexcept{
    if(m_connectToAllHubs == 0){
        m_connectToAllHubs = new QAction(QObject::trUtf8("Подключиться ко всем избранным хабам."), qApp);
    }
    return m_connectToAllHubs;
}
